package alp.starcode.nudtportal.framework.constant;

public enum ServiceStatusEnum {
    NORMAL(0, "正常"),
    FORBIDDEN(1, "禁用"),
    WRITE_OFF(2, "注销"),
    PAST_DUE(3, "过期");

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    String name;

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    Integer status;

    ServiceStatusEnum(Integer status, String name) {
        this.status = status;
        this.name = name;
    }

    public static String getNameByStatus(Integer Status) {
        ServiceStatusEnum[] loginTypeEnums = values();
        ServiceStatusEnum[] var6 = loginTypeEnums;
        int var5 = loginTypeEnums.length;
        for (int var4 = 0; var4 < var5; ++var4) {
            ServiceStatusEnum loginTypeEnum = var6[var4];
            if (Status.equals(loginTypeEnum.status)) {
                return loginTypeEnum.name;
            }
        }
        return null;
    }
}
